package packets.c2spackets;

import network.MCConnection;
import entities.Player;
import exceptions.UnrecoverableException;
import packets.PacketHandler;
import world.WorldState;

public class P0x0A extends PacketHandler {

	public P0x0A(WorldState state) {
		super(state);
	}

	@Override
	public void handle(MCConnection conn) throws UnrecoverableException {
		Player p = conn.getPlayer();

		/*boolean onGround = */
		p.setOnGround(conn.r.readBoolean());
		p.updateLocation();	//TODO: updateOnGroundOnly

	}

}
